import service from "@/api/axios";

// 根据条件查询借阅人信息
export const getPersonListApi = (data) => {
    return service({
        url: '/personManage',
        method: "GET",
        params: data,
    })
}
// 根据借阅人ID获取当前借阅情况
export const getPersonBorrowApi = (id) => {
    return service({
        url: `/personManage/getPersonBorrow/${id}`,
        method: "GET",
    })
}
// 根据借阅人ID获取借阅日志
export const getPersonBorrowLogApi = (id) => {
    return service({
        url: `/personManage/getPersonBorrowLog/${id}`,
        method: "GET",
    })
}
// 手动启用借阅人
export const startPersonApi = (id) => {
    return service({
        url: `/personManage/${id}`,
        method: "PUT",
    })
}
// 手动锁定借阅人
export const endPersonApi = (id) => {
    return service({
        url: `/personManage/${id}`,
        method: "DELETE",
    })
}